﻿@page "/login"
@layout LoginLayout
@inject IUserAuthenService _userAuthenService
@inject IJSRuntime _jSRuntime
@inject NavigationManager _navigationManager
<div id="particles-js">
    <div class="login">
        <div class="login-top" style="text-align:center">
            LALUZ ERP
        </div>


        <div class="login-center clearfix">
            <div class="login-center-img"><img src="_content/CyssBlazor.Shared/img/name.png" /></div>
            <div class="login-center-input">
                <input type="text" @bind-value="loginModel.UserNo" placeholder="请输入您的用户名" required onfocus="this.placeholder=''" onblur="this.placeholder='请输入您的用户名'" />
                <div class="login-center-input-text">用户名</div>
            </div>
        </div>
        <div class="login-center clearfix">
            <div class="login-center-img"><img src="_content/CyssBlazor.Shared/img/password.png" /></div>
            <div class="login-center-input">
                <input type="password" @bind-value="loginModel.UserPwd" placeholder="请输入您的密码" required onfocus="this.placeholder=''" onblur="this.placeholder='请输入您的密码'" />
                <div class="login-center-input-text">密码</div>
            </div>
        </div>
        <div class="login-center clearfix" style="color:red">
            @loginModel.Message
        </div>
        <div class="login-button">
            <Button @ref="loginButton" IsAsync="true" Text="登陆" OnClickWithoutRender="LoginSubmit" style="width:100%" />
        </div>


    </div>
    <div class="sk-rotating-plane"></div>
</div>
